home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / std / c / 494 < prev    next >
Internet Message Format  |  1996-08-06  |  3KB

  1. Path: solon.com!not-for-mail
  2. From: seebs@solutions.solon.com (Peter Seebach)
  3. Newsgroups: gnu.misc.discuss,comp.std.c
  4. Subject: Re: Coding Standards are ignorant
  5. Date: 4 Mar 1996 10:17:22 -0600
  6. Organization: Usenet Fact Police (Undercover)
  7. Message-ID: <4hf52i$15m@solutions.solon.com>
  8. References: <4gum82$14v4@info4.rus.uni-stuttgart.de> <1996Mar403.23.06.8316@koobera.math.uic.edu> <4he37i$a0u@solutions.solon.com> <1996Mar408.48.01.11162@koobera.math.uic.edu>
  9. NNTP-Posting-Host: solutions.solon.com
  10.  
  11. In article <1996Mar408.48.01.11162@koobera.math.uic.edu>,
  12. D. J. Bernstein <djb@koobera.math.uic.edu> wrote:
  13. >Peter Seebach <seebs@solutions.solon.com> wrote:
  14. >> D. J. Bernstein <djb@koobera.math.uic.edu> wrote:
  15. >> > Seebach has been making a bunch of false statements on gnu.misc.discuss
  16. >> > about portability, speed, and various other things.
  17. >> Example false statements:
  18.  
  19. >``There are no interesting programs you can't write entirely within 
  20. >POSIX and ANSI.''
  21.  
  22. (I didn't realize POSIX sockets don't exist yet.  :) )
  23.  
  24. >``[ispunct()] has no excuse to assume that char is 8 bits.'' (Of course
  25. >it has an excuse. Whether it's a _good_ excuse is a side issue.)
  26.  
  27. (Mostly, my point is that ispunct is a library function, and may assume
  28. whatever it pleases.  A user-land equivalent, I believe, has no call to
  29. assume char is 8 bits.)
  30.  
  31. >``It will hurt because it's incorrect by the only standard applicable.''
  32. >(False hypothesis, false logic, false conclusion.)
  33.  
  34. I don't see any of these; code which is not strictly conforming, or even
  35. just code which invokes undefined behavior, is worse off than code that
  36. doesn't.
  37.  
  38. >``void main [has] NO BENEFIT WHATSOEVER.''
  39.  
  40. >``If declaring main as void really shuts gcc up, there is a bug in
  41. >either gcc or your code.''
  42.  
  43. Both of these I stand by, and I consider them to be error-free.
  44.  
  45. >Referring to isalnum || strchr: ``... this version is likely to be
  46. >within 5% of your version, because isalnum is normally blindingly fast,
  47. >and most characters in addresses will be isalnum.''
  48.  
  49. Blatantly false, except that it might be very close on a machine with
  50. a different implementation.  Becomes true if you include the rest of the
  51. code.
  52.  
  53. >Referring to RFC 822: ``... '.' must also be quoted.'' (No, not always.)
  54.  
  55. So I just skimmed the grammar, and saw a list of characters marked "must
  56. be quoted".  Followups on this one to comp.mail.headers.
  57.  
  58. -s
  59. -- 
  60. Peter Seebach - seebs@solon.com - Copyright 1996 Peter Seebach.
  61. C/Unix wizard -- C/Unix questions? Send mail for help.  No, really!
  62. FUCK the communications decency act.  Goddamned government.  [literally.]
  63. The *other* C FAQ - http://www.solon.com/~seebs/c/c-iaq.html
  64.